﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MngEnterprise.aspx.cs"
    Inherits="LDSP.UI.Admin.MngEnterprise" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link type="text/css" href="../../Styles/bg.css" rel="Stylesheet" />
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../../Scripts/jqex.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
    <script type="text/javascript" src="../../Scripts/calendar.js"></script>
    <title>企业管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="mngTitle">
            <span class="mngEmphasis">企业管理：</span>
            <asp:Label ID="TotalRecords" runat="server" Text="Label" CssClass="searchResultLabel"></asp:Label>
        </div>
        <fieldset>
            <legend>查询</legend>
            <table class="mngDetail" style="display: none">
                <tr>
                    <td class="itemLabel">
                        条件设置：
                    </td>
                    <td class="itemValue">
                        <asp:DropDownList ID="ddl_fields1" runat="server" IsFilter="True">
                        </asp:DropDownList>
                        <asp:DropDownList ID="ddl_cal1" runat="server">
                        </asp:DropDownList>
                        <asp:TextBox ID="txt_cond1" runat="server" CssClass="mngDetailTxt" IsFilterValue="True"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                        <asp:DropDownList ID="ddl_op1" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td class="itemValue">
                        <asp:DropDownList ID="ddl_fields2" runat="server" IsFilter="True">
                        </asp:DropDownList>
                        <asp:DropDownList ID="ddl_cal2" runat="server">
                        </asp:DropDownList>
                        <asp:TextBox ID="txt_cond2" runat="server" CssClass="mngDetailTxt" IsFilterValue="True"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                        <asp:DropDownList ID="ddl_op2" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td class="itemValue">
                        <asp:DropDownList ID="ddl_fields3" runat="server" IsFilter="True">
                        </asp:DropDownList>
                        <asp:DropDownList ID="ddl_cal3" runat="server">
                        </asp:DropDownList>
                        <asp:TextBox ID="txt_cond3" runat="server" CssClass="mngDetailTxt" IsFilterValue="True"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                    </td>
                    <td class="itemValue">
                        <asp:Button ID="btn_ok" runat="server" Text="搜索" OnClick="btn_ok_Click" CssClass="mngBtn" />
                        <asp:Button ID="btn_addNew" runat="server" Text="添加企业" OnClick="btn_add_Click" CssClass="mngBtn" />
                        每页显示记录数：<asp:DropDownList ID="ddl_pageSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_pageSize_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            <table id="filterArea" class="mngDetail">
                <tr>
                    <td class="itemLabel">
                        企业名称：
                    </td>
                    <td class="itemValue">
                        <asp:TextBox ID="txt_code" runat="server" CssClass="itemCtrl"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                        行业：
                    </td>
                    <td class="itemValue">
                        <asp:DropDownList ID="ddl_industry" runat="server" CssClass="itemCtrl">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                        地址：
                    </td>
                    <td class="itemValue">
                        <asp:TextBox ID="txt_address" runat="server" CssClass="itemCtrl"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                    </td>
                    <td class="itemValue">
                        <asp:Button ID="btn_search" runat="server" Text="搜索" OnClick="btn_search_Click" CssClass="mngBtn" />&nbsp;
                        <input type="button" value="重置" onclick="resetFilterCondition('filterArea')" class="mngBtn" />
                    </td>
                </tr>
            </table>
        </fieldset>
        <div class="mngList">
            <div class="mngList">
                <asp:Button ID="btn_add" runat="server" Text="添加企业" OnClick="btn_add_Click" CssClass="mngBtn" /><asp:Button
                    ID="btn_delete" runat="server" Text="删除选中" OnClientClick="return confirm('删除企业将删除该企业的所有相关数据，您确认要删除么？')"
                    OnClick="btn_delete_Click" CssClass="mngBtn" />
                <asp:Button ID="Export" runat="server" Text="导出选中" CssClass="mngBtn" OnClick="Export_Click" /></div>
            <asp:GridView ID="grd_list" runat="server" AutoGenerateColumns="False" EmptyDataText="当前没有查到任何数据！"
                DataKeyNames="id" OnRowCommand="grd_list_RowCommand" OnRowDataBound="grd_list_RowDataBound"
                BackColor="#666699" BorderColor="#999999" AllowPaging="true" AllowSorting="true"
                CellPadding="3" GridLines="Vertical" Width="100%" OnPageIndexChanging="grd_list_PageIndexChanging"
                OnSorting="grd_list_Sorting">
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                <EmptyDataRowStyle BorderStyle="None" BorderWidth="0px" Font-Bold="True" Font-Size="16pt"
                    ForeColor="white" />
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="chb_selectAll" runat="server" onclick="selectAll(this,'grd_list')" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chb" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="序号" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                    </asp:BoundField>
                    <asp:BoundField HeaderText="行业" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Center">
                    </asp:BoundField>
                    <asp:BoundField DataField="code" HeaderText="企业名称" SortExpression="code" ItemStyle-Width="150px">
                    </asp:BoundField>
                    <asp:BoundField DataField="address" HeaderText="地址" SortExpression="address" ItemStyle-Width="250px">
                    </asp:BoundField>
                    <asp:BoundField DataField="phone" HeaderText="电话" SortExpression="phone" ItemStyle-Width="100px">
                    </asp:BoundField>
                    <asp:BoundField DataField="" HeaderText="Email" SortExpression="" ItemStyle-Width="100px">
                    </asp:BoundField>
                    <asp:BoundField DataField="contact" HeaderText="联系人" SortExpression="contact" ItemStyle-Width="100px">
                    </asp:BoundField>
                    <asp:BoundField DataField="comment" HeaderText="备注" SortExpression="comment" />
                    <asp:TemplateField HeaderText="修改" ShowHeader="False">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandArgument='<%# Eval("id") %>'
                                CommandName="updateItem" Text="修改"></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除" ShowHeader="False">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" CommandName="deleteItem"
                                OnClientClick="return confirm('删除企业将删除该企业的所有相关数据，您确认要删除么？')" Text='删除' CommandArgument='<%# Eval("id") %>'></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:TemplateField>
                </Columns>
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="#DCDCDC" />
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
